package com.taxi.driver.data.entity;

import java.util.Comparator;

/**
 * 汽车型号 entity
 * Created by Curry on 2018/5/17.
 */

public class CarModleEntity implements Comparator<CarModleEntity>
{
    private String mName;
    private String mSortLetters;

    public String getName() {
        return mName;
    }

    public void setName(String name) {
        mName = name;
    }

    public String getSortLetters() {
        return mSortLetters;
    }

    public void setSortLetters(String sortLetters) {
        mSortLetters = sortLetters;
    }

    @Override
    public int compare(CarModleEntity t1, CarModleEntity t2) {
        return t1.getSortLetters().compareTo(t2.getSortLetters());
    }
}